﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _20161213_TeaProject
{
    class Tea
    {
        string country; //страна производитель
        string sort; //сорт чая
        int weightOfPack; //вес в граммах
        double pricePer100G; //цена за 100 грамм

        public Tea(string country, string sort, int weightOfPack, double priceOf100G)
        {
            this.country = country;
            this.sort = sort;
            this.weightOfPack = weightOfPack;
            this.pricePer100G = priceOf100G;
        }

        public string GetCountry()
        {
            return country;
        }

        public double GetPriceOfPack()
        {
            return pricePer100G * weightOfPack / 100;
        }

        public override string ToString()
        {
            return String.Format("Country: {0}, sort: {1}, weight of Pack: {2}g, price of 100g: {3} грн.",
                country, sort, weightOfPack, pricePer100G);
        }
    }
}
